Shadowing makes it impossible to use the type parameter from the outer scope. Also, it can be confusing to distinguish which type parameter is
being used.
This rule raises an issue when a type parameter from an inner scope uses the same name as one in an outer scope.
Noncompliant code example
class TypeParameterHidesAnotherType<T> {
T method<T> () { // Noncompliant
...
}
}
Compliant solution
class NoTypeParameterHiding<T> {
U method<U> () {
...
}
}